package com.gcorp.idealgas.type;

import java.awt.Color;

import com.gcorp.idealgas.Velocity;

public class StandardMolecule implements MoleculeType
{
	private float vx;
	
	private float vy;
	
	
	StandardMolecule()
	{
		vx = 1.0f;
		vy = -1.0f;
	}

	@Override
	public float getMass() 
	{
		return 1.0f;
	}

	@Override
	public Color getColor() 
	{
		return new Color(244,100,0);
	}

	@Override
	public float getRadius() 
	{
		return 8.2f;
	}

	@Override
	public Velocity getVelocity() 
	{
		return new Velocity(vx,vy);
	}

	@Override
	public void reverseX() 
	{
		vx = -vx;
		
	}

	@Override
	public void reverseY() 
	{
		vy = -vy;
		
	}

	@Override
	public void setdVx(float vx) 
	{
		this.vx = vx;
		
	}

	@Override
	public void setdVy(float vy) 
	{
		this.vy = vy;
		
	}
	
}